import request from '@/utils/request'
import { functionsIn } from 'lodash'

// 学生登录
export async function studentLogin(params) {
    return request('/api/student/login', {
        method: 'get',
        params
    })
}

export async function updatePassword(params) {
    return request('/api/student/updatePassword', {
        method: 'post',
        data: params
    })
}

export async function updateName(params) {
    return request('/api/student/updateName', {
        method: 'post',
        data: params
    })
}

export async function getUserInfo(params) {
    return request('/api/student/getUserInfo', {
        method: 'get',
        params
    })
}

export function getAllUserInfo() {
    return request("/api/student/getAllUserInfo", {
        method: "get"
    })
}

export function insertStudet(params) {
    return request("/api/student/insertStudet", {
        method: "post",
        data: params
    })
}

export function updateById(params) {
    return request("/api/student/updateStudentById", {
        method: "post",
        data: params
    })
}

export function deleteStudentById(params) {
    return request("/api/student/deleteStudentById", {
        method: 'get',
        params
    })
}
